package com.changli04.override;

public class Student extends Person{
    String school;
    public Student(String name, int age, String school){
        setName(name);
        setAge(age);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String shool) {
        this.school = shool;
    }
    public void eat(){
        System.out.println("学生正是长身体的时候，应该吃有营养的食物");
    }
    @Override
    public void sleep(){
        System.out.println("学生应该有充足的睡眠时间");
    }
}
